package taskscheduler.components;

import java.util.Date;

public class Item implements ItemAsTask {
	
	private int id;
	private Date time;
	private String name;
	private Order order;
	private int  timeToConsume;
	private int  timeToPrepare;
	private Date timeServed;
	private ItemType type;
	private double price;
	private int quantity = 1;


	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public Item() {
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public int  getTimeToConsume() {
		return timeToConsume;
	}

	public void setTimeToConsume(int  timeToConsume) {
		this.timeToConsume = timeToConsume;
	}

	public int  getTimeToPrepare() {
		return timeToPrepare;
	}

	public void setTimeToPrepare(int  timeToPrepare) {
		this.timeToPrepare = timeToPrepare;
	}

	public Date getTimeServed() {
		return timeServed;
	}

	public void setTimeServed(Date timeServed) {
		this.timeServed = timeServed;
	}	
	
	public ItemType getType() {
		return type;
	}

	public void setType(ItemType type) {
		this.type = type;
	}


	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
	public enum ItemType {
		type1, type2, type3, type4, type5, type6;
	}
	

}
